import javax.naming.Name;

//创建一个Java类`Student`，包含私有属性`name`、`age`和`grade`三个属性，完成它的公共方法、无参、有参构造器，以及一个`toString`方法用于显示学生的信息。
public class Demo07 {
    private String name;
    private int age;
    private int grade;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getGrade() {
        return grade;
    }

    public void setGrade(int grade) {
        this.grade = grade;
    }



    public Demo07(String name, int age, int grade) {
        this.name = name;
        this.age = age;
        this.grade = grade;
    }

    public Demo07() {
    }

    @Override
    public String toString() {
        return "Demo07{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", grade=" + grade +
                '}';
    }

    public static void main(String[] args) {

        System.out.println(new Demo07());
    }


}
